 

import { useI18n } from 'vue-i18n'
import type { IJsonItem } from '../types'

export function useRunFlag(): IJsonItem {
  const { t } = useI18n()
  const options = [
    {
      label: t('project.node.normal'),
      value: 'YES'
    },
    {
      label: t('project.node.prohibition_execution'),
      value: 'NO'
    }
  ]
  return {
    type: 'radio',
    field: 'flag',
    name: t('project.node.run_flag'),
    options: options
  }
}
